@use 'sass:map';
@use 'sass:color';

.info-card {
  position: relative;

  .info-tab-option-btns {
    position: absolute;
    top: 12px;
    right: 0;
    z-index: 99;
  }
}

.to-bottom {
  // 整块离底部的距离
  margin-bottom: 24px;
}

.search {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;

  .search_left {
    margin-right: 10px;
  }
}

// 删除confirm
.delete-confirm-box {
  text-align: center;

  :global {
    .delete-title {
      font-size: map.get($font-size, 'base');
      color: map.get($text-color, 'primary');
      margin-top: 30px;
      margin-bottom: 24px;
    }

    .delete-content {
      font-size: map.get($font-size, 'small');
      color: map.get($text-color, 'regular');
      margin-bottom: 45px;
    }
  }
}

.police-edit-title {
  font-size: map.get($font-size, 'base');
  font-weight: bold;
}

.model-input {
  width: 280px !important;
}

.equipment-box {
  display: flex;
  flex-direction: row;
}

// 策略
.equipment-box-style {
  border: 1px solid #eee;
  width: 280px;
  height: 300px;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  margin-right: 15px;
  border-radius: 4px;

  .positionIcon {
    position: absolute;
    right: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
  }

  .box-style-title {
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 10px;
    text-align: left;
    color: #799dff;
    font-weight: 800;
    background: #d9e3ff;
  }
}

.flex-col {
  border: 1px solid #eee;
  width: 280px;
  height: 300px;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  margin-right: 15px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loopWrapper {
  width: 120px;
  margin: 0 12px 10px 0;
}

#map-location-amap {
  // height: 280px;
  min-height: 400px;
  height: calc(100% - 150px);
  margin-bottom: 16px;
}

.map-location-select-address {
  position: absolute;
  background-color: $color-white;
  top: map.get($spacing, 'secondGear');
  left: map.get($spacing, 'secondGear') + 12px;

  :global {
    .el-select .el-input .el-select__caret {
      transform: rotateZ(0deg);
    }
  }
}

.map-location-option-address {
  width: 98%;
  height: 48px;
  margin: 0 auto 6px;
  overflow: visible;

  &:global(.selected) {
    background-color: color.adjust($color-primary, $alpha: -0.85);
  }

  &:global(.selected .el-link--info) {
    color: $color-primary;
  }

  :global {
    .el-link {
      font-size: map.get($font-size, 'extra-large');
      margin-right: 8px;
      vertical-align: text-bottom;
    }

    .option-text {
      display: inline-block;
      vertical-align: sub;
      line-height: 1.8;
      font-size: map.get($font-size, 'small');
      color: map.get($text-color, 'primary');

      p {
        font-size: map.get($font-size, 'extra-small');
        color: $color-info;
      }
    }
  }
}

.sessionDom {
  height: calc(100vh - 105px);
  display: block;
  overflow: hidden;
  position: relative;

  :global {
    .el-drawer.rtl {
      top: map.get($spacing, 'secondGear');
      right: map.get($spacing, 'secondGear');
      height: calc(100% - map.get($spacing, 'fourthGear'));
    }
  }
}

#map-init {
  // height: calc(100% - 130px);
  // width: calc(100% - 206px);
  width: 100%;
  height: 100%;
  position: absolute;

  :global {
    .amap-overlay-text-container {
      // border-radius: map.get($spacing, 'firstGear');
      // border-color: transparent;
      // box-shadow: var(--el-box-shadow-light);
      background-color: transparent;
      border-width: 0;
      text-align: center;

      .area-name {
        // font-weight: 500;
        padding: map.get($spacing, 'firstGear') map.get($spacing, 'secondGear');
        font-size: map.get($font-size, 'base');
        line-height: 1;
      }

      .area-total {
        font-size: map.get($font-size, 'small');
      }
    }
  }
}

.areaDom {
  width: 316px;
  height: calc(100% - map.get($spacing, 'fourthGear'));
  background-color: $color-white;
  border-radius: 8px;
  position: relative;
  top: map.get($spacing, 'secondGear');
  left: map.get($spacing, 'secondGear');
  z-index: 100;
  box-shadow: var(--el-box-shadow-light);
  font-size: 14px;

  .areaAddIcon {
    float: right;
    color: $color-primary;
    font-size: map.get($font-size, 'small');
  }
}

.areaTitle {
  width: 100%;
  float: left;
  padding: 10px;
  box-sizing: border-box;
  font-size: map.get($font-size, 'base');
  background-color: #4c72f6;
  color: #fff;
  border-radius: 8px 8px 0 0;
  font-weight: bold;

  .lineTxt {
    width: 4px;
    background-color: $color-white;
    float: left;
    margin-right: 10px;
    padding-top: 24px;
  }
}

.ulstyle {
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  float: left;
  border: none;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;

  li {
    // height: 28px;
    list-style: none;
    margin-bottom: 8px;
    float: left;
    width: 100%;
    padding: 6px map.get($spacing, 'firstGear') 0;
    opacity: 1;
    font-size: map.get($font-size, 'small');
    border: 1px solid color.adjust($color-primary, $alpha: -0.85);
    box-sizing: border-box;
    border-radius: map.get($border-radius, 'base');
    cursor: pointer;

    .iconDom {
      float: right;
      margin-top: 6px;
      margin-right: 4px;

      i {
        font-size: map.get($font-size, 'small');
        color: $color-primary;
      }
    }

    .leftIcon {
      float: left;
      margin-top: 6px;

      i {
        color: $color-info;
        font-size: 20px;
      }
    }

    .labtxt {
      // float: left;
      // color: $color-info;
      font-weight: 400;
      display: inline-block;
      line-height: 30px;
      width: 100px;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
  }
}

.runmap-scrollbar {
  width: calc(100% - 20px);
  padding: 10px;
}

.lamppostRight {
  width: 540px;
  background-color: $color-white;
  border-radius: 8px;
  position: absolute;
  top: map.get($spacing, 'secondGear');
  right: map.get($spacing, 'secondGear');
  z-index: 100;
  box-shadow: var(--el-box-shadow-light);
  float: right;

  .lampTitle {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    background-color: #4c72f6;

    .lineTxt {
      text-align: left;
      color: #fff;
    }
  }
}

.content {
  padding: 8px 14px 20px;

  .option {
    margin-bottom: 10px;
  }

  .title {
    width: 4px;
    float: left;
    background-color: $color-primary;
    margin-right: 10px;
    padding-top: 24px;
  }
}

.asset-home-zoom {
  position: absolute;
  bottom: map.get($spacing, 'fifthGear') + map.get($spacing, 'thirdGear');
  right: map.get($spacing, 'secondGear');
  transition: bottom var(--el-transition-duration);

  &.asset-home-zoom-expand {
    bottom: 400px + map.get($spacing, 'fourthGear');
  }

  :global {
    .el-card__body {
      padding: map.get($spacing, 'firstGear');
    }

    .zoom-number-card {
      font-size: map.get($font-size, 'small');
      width: 30px;
      height: 30px;
      line-height: 1.2;
      text-align: center;
    }

    .zoom-option-card {
      .el-card__body {
        padding-bottom: 0;
      }

      .el-divider {
        margin: 0;
      }
    }
  }
}

// 右键菜单
.tree-rig-click-menu {
  position: fixed;
  background: #fff;
  margin: 0;
  list-style: none;
  padding: 5px 20px;
  border: 1px #ddd solid;
  z-index: 111;

  li {
    padding: 0;
    margin: 0;
    list-style: none;
    line-height: 36px;
    height: 36px;
    font-size: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px #ddd solid;

    &:last-child {
      border: none;
    }

    img {
      display: inline-block;
      width: 16px;
      height: 16px;
      margin-right: 12px;
    }

    label {
      font-size: 14px;
      line-height: 36px;
      height: 36px;
      cursor: pointer;
      width: 70px;
      display: inline-block;
    }

    &:hover {
      color: #409eff;
    }
  }
}

.order-info-descriptions {
  :global {
    .el-descriptions__label {
      width: 84px;
      display: inline-block;
      text-align: right;
      color: $color-info;
    }

    .el-descriptions__content {
      color: map.get($text-color, 'primary');
    }
  }
}

.bar-chart,
.line-chart {
  .statistics-map {
    height: 240px;
  }
}

.lightIcon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-left: 8px;
}

.map-location {
  position: relative;
}

.info-form-item-full-width {
  width: 100%;

  &:global(.el-input) {
    width: 100%;
  }

  :global {
    .el-radio-button {
      flex: 1;

      .el-radio-button__inner {
        width: 100%;
      }
    }

    .el-date-editor.el-input__wrapper {
      width: 100%;
    }
  }
}
